 

import { useI18n } from 'vue-i18n'
import type { IJsonItem } from '../types'

export function useTargetTaskName(): IJsonItem {
  const { t } = useI18n()
  return {
    type: 'input',
    field: 'targetJobName',
    name: t('project.node.target_task_name'),
    props: {
      placeholder: t('project.node.target_task_name_tips'),
      maxLength: 100
    },
    validate: {
      trigger: ['input', 'blur'],
      required: true,
      message: t('project.node.target_task_name_tips')
    }
  }
}
